import java.util.Scanner;

public class Diamond {
    public static void main(String[] args) {
        int n;
        String myString = "*";
        Scanner read = new Scanner(System.in);
        // printing one line using user input from keyboard
        System.out.print("Enter a number for n: ");
        n = read.nextInt();

        for (int x = 0; x < n; x++) {
            String spaces = "";
            for(int y = x; y < n-1; y++) {
                spaces = spaces + " ";
            }
            System.out.println(spaces + myString);
            myString = "*" + myString + "*";
        }
        myString = myString.substring(2, myString.length());
        String spaces = " ";
        for(int x = n; x > 1; x--) {
            if (myString.length() > 2) {
                myString = myString.substring(2, myString.length());
            }
            System.out.println(spaces + myString);
            spaces = spaces + " ";
        }
    }
}